﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;

namespace Jet.Dal.EF.Tests.DataObjects
{
	/// <summary>
	/// Information about customer demographics from Northwind database
	/// </summary>
	[DebuggerDisplay("{TerritoryID}")]
	[Table("Territories")]
	public class Territories
	{
		[Key]
		public string TerritoryID { get; set; }

		[Column]
		public string TerritoryDescription { get; set; }

		[Column]
		public int RegionID { get; set; }

		[ForeignKey("RegionID")]
		public virtual Region Region { get; set; }

		public override string ToString()
		{
			return string.Format("Territory: ID='{0}', Description ='{1}' RegionID='{2}'", TerritoryID, TerritoryDescription, RegionID);
		}
	}
}
